<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <base href="<%=basePath%>">
	<link href="<%=request.getContextPath() %>/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<c:if test="${empty currentUser}">
<jsp:include page="../404.jsp"/>
</c:if>
<c:if test="${!empty currentUser}">
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="">首页</a></li>
    <li><a href="">表单</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息</span></div>
    已回复
    <c:forEach items="${adviceFor}" var="adviceFor">
    	${adviceFor.doctorAnswer}<br/>
    </c:forEach>
      <form action="<%=request.getContextPath() %>/advice/saveAddQuest" method="post"  enctype="multipart/form-data">
    <ul class="forminfo">
    <li><label>追问</label></li>
   	<c:forEach items="${adviceForUser}" var="adviceForUser">
   	<c:if test="${adviceForUser.addQuest!=null}">
   		${adviceForUser.addQuest}<br/>
   	</c:if>
   		<c:if test="${adviceForUser.addQuest==null}">
     <li><label>问题描述</label>${adviceForUser.problem}</li>
   	</c:if>
    	<input type="hidden" name="problemIdForeign" value="${adviceForUser.problemId}">
    </c:forEach>
     <li><label>回复</label><textarea name="doctorAnswer" cols="" rows="" class="textinput"></textarea></li>
   <li><input name="" type="submit" class="btn" value="确认回复"/></li>
    </ul>
    </form>
    </div>
    </c:if>
</body>
</html>
